package Weather_Observer_15;

public class PhoneDisplay implements Observer {
    public void update(float temperature, float humidity, float pressure) {
        System.out.println("手机通知: 气温: " + temperature + "°C, 湿度: " + humidity + "%, 气压: " + pressure + " hPa");
    }
}
